home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / makefile.ulx < prev    next >
Makefile  |  1991-07-05  |  12KB  |  276 lines

  1. #
  2. # This makefile builds TECOC on a Sun running the SunOS operating system.
  3. # Before running it,  inspect the lines between here and the line containing
  4. # all #'s to select the way you want TECO-C built.
  5.  
  6. # If you want to compile with built-in debugging support,  uncomment the
  7. # following line.  When debugging is compiled in,  the control-P command
  8. # can be used to turn on function tracing or get views of internal data
  9. # structures (see the DbgDsp function in tecoc.c). Compiling in this support
  10. # makes TECO-C larger and a little slower,  so you should only use this
  11. # when you're debugging TECO-C.
  12.  
  13. #DEBG = -DDEBUGGING
  14.  
  15. # If you're debugging TECO-C,  use this option to compile in a consistency
  16. # checking function called after each command executes.  The function checks
  17. # the sanity of TECO-C's internal variables.  This obviously slows things
  18. # down a little.
  19.  
  20. #CCHEK = -DCONSISTENCY_CHECKING
  21.  
  22. # Include files for SunOS 4.0 are different than for 4.1 (4.1's are closer
  23. # to the ANSI Standard).  Define OSVERS as -DSUNOS4_0 if you're running
  24. # 4.0,  so functions get properly declared (and to keep gcc from bitching).
  25.  
  26. #OSVERS = -DSUNOS4_0
  27.  
  28. # To choose the compiler you want to use,  uncomment one of the following
  29. # sets of lines (between here and the line containing all "#" characters).
  30.  
  31. # If you want to compile with video support,  uncomment the following lines,
  32. # which use the System V compiler and compile/link using System V include
  33. # files and libraries.  I've found that I get "undefined symbol" errors if I
  34. # don't unsetenv the LD_LIBRARY_PATH environment variable before linking
  35. # with this set of lines.
  36. #
  37. # Note that compiling in video support is a mixed blessing.  If you use
  38. # TECO-C exclusively in video mode,  there are no problems.  If you turn
  39. # video off (using a 0,7:w command) you'll notice that typeout is very slow.
  40. # This is an artifact of curses.  To get fast typeout,  build TECO-C without
  41. # video (use one of the other sets of lines below).
  42.  
  43. #CC = /usr/5bin/cc
  44. #CFLAGS = ${OSVERS}${DEBG}${CCHEK} -DCURSES -O -pipe
  45. TERMOBJS = /usr/lib/termcap.o -lcursesX
  46.  
  47. # If you want to the standard compiler,  uncomment the following line.
  48.  
  49. CFLAGS = $(OSVERS) ${DEBG} ${CCHEK} -O -pipe
  50. TERMOBJS = -ltermcap
  51.  
  52. # If you want to use gcc,  uncomment the following lines,  which override the
  53. # COMPILE.c macro so it doesn't stick in the -target option, which gcc
  54. # doesn't understand.
  55.  
  56. #CC= gcc
  57. #CFLAGS= ${OSVERS} ${DEBG} ${CCHEK} -O -Wall -Wshadow -Wpointer-arith -Wcast-qual
  58. #TERMOBJS = -ltermcap
  59. #COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) -c -g
  60.  
  61. #############################################################################
  62.  
  63. CFILES=    baksrc.c bldstr.c clenup.c cmatch.c docjr.c doeves.c doflag.c \
  64.     echoit.c err.c exea.c exeats.c exeb.c exebar.c exebsl.c exec.c \
  65.     execcc.c execln.c execom.c execrt.c execst.c execta.c exectc.c \
  66.     exectd.c execte.c execti.c exectl.c exectn.c execto.c exectp.c \
  67.     exectq.c exectr.c exects.c exectt.c exectu.c exectv.c exectw.c \
  68.     exectx.c execty.c exectz.c exed.c exedgt.c exedot.c exedqu.c \
  69.     exee.c exeequ.c exeesc.c exeexc.c exeey.c exef.c exefb.c exeg.c \
  70.     exegtr.c exeh.c exei.c exeill.c exej.c exek.c exel.c exelbr.c \
  71.     exelst.c exem.c exen.c exenul.c exenyi.c exeo.c exeopr.c exep.c \
  72.     exeprc.c exepw.c exeq.c exeqes.c exer.c exerbr.c exertp.c exes.c \
  73.     exescl.c exet.c exetil.c exeu.c exeund.c exeusc.c exev.c exew.c \
  74.     exex.c exey.c exez.c findes.c findqr.c flowec.c flowee.c flowel.c \
  75.     getara.c getnma.c inccbp.c init.c insstr.c isradx.c ln2chr.c \
  76.     makdbf.c makrom.c popmac.c pshmac.c pushex.c rdline.c rdpage.c \
  77.     readcs.c replac.c search.c singlp.c skpcmd.c srclop.c sserch.c \
  78.     tabort.c typbuf.c typest.c uminus.c wrpage.c zfrsrc.c zunix.c
  79.  
  80. OBJECTS= $(CFILES:.c=.o)
  81.  
  82. tecoc: tecoc.o ${OBJECTS}
  83.     ${LINK.c} -s -o $@ tecoc.o ${OBJECTS} ${TERMOBJS}
  84.  
  85. tecoc.o: tecoc.c zport.h tecoc.h deferr.h dchars.h chmacs.h
  86.  
  87. clpars.h: genclp clpars.tec
  88.     genclp
  89.  
  90. genclp: genclp.o
  91.     ${LINK.c} -o $@ genclp.o
  92.  
  93. genclp.o: genclp.c
  94.  
  95. clean:
  96.     @for i in makedep? ${OBJECTS} ; do \
  97.         if [ -f $$i ] ; then rm $$i ; fi ; \
  98.     done
  99.     rm -f tecoc tecoc.o core
  100.  
  101. tags:
  102.     etags *.c *.h
  103.  
  104. lint:
  105. # b = report unreachable break statements
  106. # c = complain about casts with questionable portability
  107. # h = apply heuristic tests
  108. # x = report unused externs
  109.     lint -bchx -DSUNOS4_0 tecoc.c ${CFILES}
  110.  
  111.  
  112. #
  113. #  Invoking this target (with "make depend") causes a new version of this
  114. #  file to be created.  This current version will be saved in a file named
  115. #  "makefile.bak".  In the new file, the lines following the special "DO NOT
  116. #  DELETE" line will be replaced with a new set of dependency rules.
  117. #
  118.  
  119. depend: makedep
  120.     @echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >makedep0
  121.     @echo '$$r makedep5' >>makedep0
  122.     @echo 'w' >>makedep0
  123.     @cp makefile makefile.bak
  124.     @ed - makefile < makedep0
  125.     @rm makedep?
  126.     @echo "new version of makefile generated, old version in makefile.bak"
  127.  
  128. makedep: FRC
  129.     @cat /dev/null >makedep5
  130.     @echo "generating include file dependency list..."
  131.     @-(for i in ${CFILES} ; do \
  132.         ${CPP} -M $$i >> makedep1; done) 2>makedepe
  133.     @echo "generating new version of makefile..."
  134.     @sed -e 's|: ./|: |' makedep1 > makedep2
  135.     @awk ' { if ($$1 != prev)                              \
  136.             { print rec; rec = $$0; prev = $$1; }  \
  137.            else                                        \
  138.             { if (length(rec $$2) > 70)            \
  139.                 { print rec; rec = $$0; }      \
  140.               else                                 \
  141.                 rec = rec " " $$2              \
  142.             }                                      \
  143.            }                                               \
  144.            END { print rec }                               \
  145.          '                                                 \
  146.          makedep2 >makedep3
  147.     @awk '/:/ {printf "%s\n", $$0}' \
  148.          makedep3 >makedep4
  149.     @sed -e 's|:|:|' makedep4 > makedep5
  150.     @cat makedepe
  151.     @(if [ -s makedepe ]; then false; fi)
  152. FRC:
  153.  
  154.  
  155. # DO NOT DELETE THIS LINE -- make depend uses it
  156. baksrc.o: baksrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  157. bldstr.o: bldstr.c zport.h tecoc.h defext.h deferr.h dchars.h chmacs.h
  158. clenup.o: clenup.c zport.h tecoc.h defext.h
  159. cmatch.o: cmatch.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  160. docjr.o: docjr.c zport.h tecoc.h defext.h deferr.h
  161. doeves.o: doeves.c zport.h tecoc.h defext.h dchars.h
  162. doflag.o: doflag.c zport.h tecoc.h defext.h
  163. echoit.o: echoit.c zport.h tecoc.h defext.h dchars.h
  164. err.o: err.c zport.h tecoc.h defext.h deferr.h dchars.h
  165. exea.o: exea.c zport.h tecoc.h defext.h deferr.h
  166. exeats.o: exeats.c zport.h tecoc.h defext.h
  167. exeb.o: exeb.c zport.h tecoc.h defext.h
  168. exebar.o: exebar.c zport.h tecoc.h defext.h deferr.h
  169. exebsl.o: exebsl.c zport.h tecoc.h defext.h chmacs.h
  170. exec.o: exec.c zport.h tecoc.h defext.h
  171. execcc.o: execcc.c zport.h tecoc.h defext.h deferr.h
  172. execln.o: execln.c zport.h tecoc.h defext.h
  173. execom.o: execom.c zport.h tecoc.h defext.h deferr.h
  174. execrt.o: execrt.c zport.h tecoc.h defext.h chmacs.h deferr.h
  175. execst.o: execst.c zport.h tecoc.h defext.h deferr.h
  176. execta.o: execta.c zport.h tecoc.h defext.h dchars.h
  177. exectc.o: exectc.c zport.h tecoc.h defext.h dchars.h
  178. exectd.o: exectd.c zport.h tecoc.h defext.h
  179. execte.o: execte.c zport.h tecoc.h defext.h
  180. execti.o: execti.c zport.h tecoc.h defext.h dchars.h
  181. exectl.o: exectl.c zport.h tecoc.h defext.h dchars.h
  182. exectn.o: exectn.c zport.h tecoc.h defext.h
  183. execto.o: execto.c zport.h tecoc.h defext.h
  184. exectp.o: exectp.c zport.h tecoc.h defext.h
  185. exectq.o: exectq.c zport.h tecoc.h defext.h
  186. exectr.o: exectr.c zport.h tecoc.h defext.h deferr.h
  187. exects.o: exects.c zport.h tecoc.h defext.h
  188. exectt.o: exectt.c zport.h tecoc.h defext.h deferr.h
  189. exectu.o: exectu.c zport.h tecoc.h defext.h deferr.h dchars.h
  190. exectv.o: exectv.c zport.h tecoc.h defext.h deferr.h
  191. exectw.o: exectw.c zport.h tecoc.h defext.h deferr.h
  192. exectx.o: exectx.c zport.h tecoc.h defext.h
  193. execty.o: execty.c zport.h tecoc.h defext.h
  194. exectz.o: exectz.c zport.h tecoc.h defext.h
  195. exed.o: exed.c zport.h tecoc.h defext.h deferr.h
  196. exedgt.o: exedgt.c zport.h tecoc.h defext.h deferr.h chmacs.h
  197. exedot.o: exedot.c zport.h tecoc.h defext.h
  198. exedqu.o: exedqu.c zport.h tecoc.h defext.h deferr.h chmacs.h
  199. exee.o: exee.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  200. exeequ.o: exeequ.c zport.h tecoc.h defext.h dchars.h deferr.h
  201. exeesc.o: exeesc.c zport.h tecoc.h defext.h dchars.h
  202. exeexc.o: exeexc.c zport.h tecoc.h defext.h
  203. exeey.o: exeey.c zport.h tecoc.h defext.h
  204. exef.o: exef.c zport.h tecoc.h defext.h chmacs.h deferr.h
  205. exefb.o: exefb.c zport.h tecoc.h defext.h deferr.h
  206. exeg.o: exeg.c zport.h tecoc.h defext.h deferr.h
  207. exegtr.o: exegtr.c zport.h tecoc.h defext.h deferr.h
  208. exeh.o: exeh.c zport.h tecoc.h defext.h
  209. exei.o: exei.c zport.h tecoc.h defext.h dchars.h deferr.h
  210. exeill.o: exeill.c zport.h tecoc.h defext.h deferr.h
  211. exej.o: exej.c zport.h tecoc.h defext.h
  212. exek.o: exek.c zport.h tecoc.h defext.h
  213. exel.o: exel.c zport.h tecoc.h defext.h
  214. exelbr.o: exelbr.c zport.h tecoc.h defext.h deferr.h
  215. exelst.o: exelst.c zport.h tecoc.h defext.h deferr.h
  216. exem.o: exem.c zport.h tecoc.h defext.h deferr.h
  217. exen.o: exen.c zport.h tecoc.h defext.h deferr.h
  218. exenul.o: exenul.c zport.h tecoc.h defext.h
  219. exenyi.o: exenyi.c zport.h tecoc.h defext.h deferr.h
  220. exeo.o: exeo.c zport.h tecoc.h defext.h dchars.h deferr.h
  221. exeopr.o: exeopr.c zport.h tecoc.h defext.h
  222. exep.o: exep.c zport.h tecoc.h defext.h deferr.h
  223. exeprc.o: exeprc.c zport.h tecoc.h defext.h deferr.h
  224. exepw.o: exepw.c zport.h tecoc.h defext.h
  225. exeq.o: exeq.c zport.h tecoc.h defext.h deferr.h
  226. exeqes.o: exeqes.c zport.h tecoc.h defext.h
  227. exer.o: exer.c zport.h tecoc.h defext.h
  228. exerbr.o: exerbr.c zport.h tecoc.h defext.h deferr.h
  229. exertp.o: exertp.c zport.h tecoc.h defext.h deferr.h
  230. exes.o: exes.c zport.h tecoc.h defext.h dchars.h deferr.h
  231. exescl.o: exescl.c zport.h tecoc.h defext.h deferr.h
  232. exet.o: exet.c zport.h tecoc.h defext.h dchars.h
  233. exeu.o: exeu.c zport.h tecoc.h defext.h deferr.h
  234. exeund.o: exeund.c zport.h tecoc.h defext.h deferr.h
  235. exeusc.o: exeusc.c zport.h tecoc.h defext.h dchars.h
  236. exev.o: exev.c zport.h tecoc.h defext.h
  237. exew.o: exew.c zport.h tecoc.h defext.h deferr.h
  238. exex.o: exex.c zport.h tecoc.h defext.h deferr.h
  239. exey.o: exey.c zport.h tecoc.h defext.h deferr.h
  240. exez.o: exez.c zport.h tecoc.h defext.h
  241. findes.o: findes.c zport.h tecoc.h defext.h deferr.h
  242. findqr.o: findqr.c zport.h tecoc.h defext.h deferr.h chmacs.h
  243. flowec.o: flowec.c zport.h tecoc.h defext.h deferr.h
  244. flowee.o: flowee.c zport.h tecoc.h defext.h deferr.h
  245. flowel.o: flowel.c zport.h tecoc.h defext.h deferr.h
  246. getara.o: getara.c zport.h tecoc.h defext.h deferr.h
  247. getnma.o: getnma.c zport.h tecoc.h defext.h deferr.h
  248. inccbp.o: inccbp.c zport.h tecoc.h defext.h deferr.h
  249. init.o: init.c zport.h tecoc.h defext.h deferr.h
  250. insstr.o: insstr.c zport.h tecoc.h defext.h deferr.h
  251. isradx.o: isradx.c zport.h tecoc.h defext.h chmacs.h
  252. ln2chr.o: ln2chr.c zport.h tecoc.h defext.h dchars.h chmacs.h
  253. makdbf.o: makdbf.c zport.h tecoc.h defext.h
  254. makrom.o: makrom.c zport.h tecoc.h defext.h deferr.h
  255. popmac.o: popmac.c zport.h tecoc.h defext.h
  256. pshmac.o: pshmac.c zport.h tecoc.h defext.h deferr.h
  257. pushex.o: pushex.c zport.h tecoc.h defext.h dchars.h deferr.h
  258. rdline.o: rdline.c zport.h tecoc.h defext.h deferr.h dchars.h
  259. rdpage.o: rdpage.c zport.h tecoc.h defext.h deferr.h
  260. readcs.o: readcs.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  261. readcs.o: dscren.h
  262. replac.o: replac.c zport.h tecoc.h defext.h dchars.h
  263. search.o: search.c zport.h tecoc.h defext.h deferr.h dchars.h
  264. singlp.o: singlp.c zport.h tecoc.h defext.h dchars.h
  265. skpcmd.o: skpcmd.c zport.h tecoc.h defext.h chmacs.h dchars.h deferr.h
  266. srclop.o: srclop.c zport.h tecoc.h defext.h deferr.h
  267. sserch.o: sserch.c zport.h tecoc.h defext.h
  268. tabort.o: tabort.c zport.h tecoc.h
  269. typbuf.o: typbuf.c zport.h tecoc.h defext.h dchars.h chmacs.h
  270. typest.o: typest.c zport.h tecoc.h defext.h dchars.h
  271. uminus.o: uminus.c zport.h tecoc.h defext.h
  272. wrpage.o: wrpage.c zport.h tecoc.h defext.h dchars.h deferr.h
  273. zfrsrc.o: zfrsrc.c zport.h tecoc.h defext.h dchars.h chmacs.h deferr.h
  274. zunix.o: zunix.c tecoc.h clpars.h dchars.h deferr.h
  275. zunix.o: defext.h dscren.h vrbmsg.h
  276.